package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 运维-工单管理(OperationWorkOrder)表实体类
 *
 * @author yxy
 * @since 2024-10-26 12:27:15
 */
@Data
@ApiModel("运维-工单管理")
@TableName(value = "tb_operation_work_order")
public class OperationWorkOrder extends Model<OperationWorkOrder> implements Serializable {
    private static final long serialVersionUID = 426657643471581216L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("工单编号")
    private String workOrderNo;

    @ApiModelProperty("项目id")
    private Long itemId;

    @ApiModelProperty("商家id")
    private Long merchantId;
    @ApiModelProperty("设备名称")
    @TableField(exist = false)
    private String itemName;
    @ApiModelProperty("商家名称")
    @TableField(exist = false)
    private String merchantName;

    @ApiModelProperty("服务类型")
    private Integer serveType;
    @ApiModelProperty("任务描述")
    private String taskRemark;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("文件")
    private String file;

    @ApiModelProperty("处理者")
    private Long processor;

    @ApiModelProperty("处理者名称")
    @TableField(exist = false)
    private String processorName;
    @ApiModelProperty("优先级0低 1中 2高")
    private Integer priority;

    @ApiModelProperty("状态0已处理 1待处理")
    private Integer status;
    @ApiModelProperty("要求完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date requiresFinishTime;
    @ApiModelProperty("实际完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date realityFinishTime;
    @ApiModelProperty("处理描述")
    private String describeStr;
}
